package com.qf.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qf.entity.TbType;
import org.apache.ibatis.annotations.Select;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author 王希卓
 * @Date 2023/7/18 14:26
 * 课程分类数据访问接口
 */
public interface TypeDao extends BaseMapper<TbType> {

    @Select("select * from tb_type where type_name=#{typeName}")
    TbType selectTypeByName(@PathVariable("typeName") String typeName);
}
